←Select platform

Write(byte[],int,int) Method

Summary

Accepts a buffer of the editable document or part of it, and writes it to an upstream or to a requesting party.

Syntax
C#
C++/CLI
Python
public RasterExceptionCode Write( 
   byte[] data, 
   int offset, 
   int count 
) 
public:  
   RasterExceptionCode^ Write( 
      array<Byte>^ data, 
      Int32 offset, 
      Int32 count 
   ) 
def Write(self,data,offset,count): 

Parameters

data

Buffer with editable contents, can be all or part of the data.

If Buffer is empty it does not mean it is at the end of the stream and should return RasterExceptionCode.Success in this case.

offset

Offset from where to start reading data from data parameter.

count

Number of elements (bytes) to read starting from offset .

Return Value

Value Description
RasterExceptionCode.Success Stream was received successfully.
RasterExceptionCode.Failed Error occurred. Server should return the exception with this error code.
RasterExceptionCode.UserAborted Operation was aborted.

Remarks

Servers call Write(byte[],int,int) with chunks of data, repeatedly until all data is written or sent. The server must guarantee sequential calls to Write(byte[],int,int) and that only one thread at a time is writing. On the other hand, Clients read all data in the stream and typically send it upstream to a web client.

Requirements

Target Platforms

See Also

Reference

IDocumentPushStream Class

IDocumentPushStream Members

Leadtools.Document Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.